
//
//  NSDate+Common.m
//  GeniusHelp_OC
//
//  Created by 8b410-2 on 16/10/28.
//  Copyright © 2016年 8b410-2. All rights reserved.
//

#import "NSDate+Common.h"

@implementation NSDate (Common)
+ (NSString *)StrFromTimeStamp:(NSInteger)timestampInt {
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm"];
    NSDate *date = [[NSDate alloc] initWithTimeIntervalSince1970:timestampInt / 1000];
    return [formatter stringFromDate:date];
}
@end
